package com.daigoudao.web.dao;

import java.util.List;

import com.daigoudao.web.model.ShortMessage;

public interface IShortMessageDao {
	/**
	 * 加入短信息
	 * 
	 * @param shortMessage
	 * @throws Exception
	 */
	public void addShortMessage(ShortMessage shortMessage) throws Exception;

	public void addShortMessages(List<ShortMessage> shortMessage)
			throws Exception;

	public List<ShortMessage> queryShortMessages(ShortMessage shortMessage)
			throws Exception;

	public int saveShortMessage(ShortMessage shortMessage) throws Exception;

	public int getMessageCount(ShortMessage shortMessage) throws Exception;

	public void alreadyRead(int smid) throws Exception;

	/**
	 * 查询消息信息
	 * 
	 * @return
	 * @throws Exception
	 */
	public ShortMessage queryShortMessage(int replyId) throws Exception;

	public void delMessageByBroker(int smid) throws Exception;

	public List<ShortMessage> queryShortMessagesByBroker(
			ShortMessage shortMessage) throws Exception;

	public int getShortMessageCountByBroker(ShortMessage shortMessage)
			throws Exception;

	public ShortMessage queryReplyMessage(int replyId) throws Exception;

	public void updateMessageStatus(ShortMessage shortMessage) throws Exception;

	public List<ShortMessage> queryShortMessagesByBuyer(
			ShortMessage shortMessage) throws Exception;

	public int getShortMessageCountByBuyer(ShortMessage shortMessage)
			throws Exception;

	public void delMessageByBuyer(int smid) throws Exception;

}
